import _io from 'socket.io'
import _express from 'express'
import _http from 'http'
import _useIO from './io'
import { _join } from 'path'

const app = _express();
// app.use(_express.static('/Users/genie/mycode/HLSP2P/test'));
// app.use(_express.static('/Users/genie/mycode/HLSP2P/dist'));
const _server = _http.createServer(app);
const socket = _io(_server);
_useIO(socket);

_server.listen(8800,() => {
    console.log('server is running at http://localhost:8800');
})